<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<html>
<head>
    <title>Spring 3 MVC Series - Contact Manager</title>
</head>
<body>
    <h2>Contact Manager</h2>
    <form:form method="post" action="addContact.do">
        <table>
            <tr>
                <td><form:label path="firstName">First name</form:label></td>
                <td><form:input path="firstName"/></td>
            </tr>
            <tr>
                <td><form:label path="lastName">Last name</form:label></td>
                <td><form:input path="lastName"/></td>
            </tr>
            <tr>
                <td><form:label path="email">Email</form:label></td>
                <td><form:input path="email"/></td>
            </tr>
            <tr>
                <td><form:label path="phone">Phone</form:label></td>
                <td><form:input path="phone"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="Add Contact">
                </td>
            </tr>
        </table>
    </form:form>
</body>
</html>